package com.jic.finance.mapper;

import java.lang.Long;
import java.util.List;

import com.jic.finance.entity.PaymentMethod;
import com.jic.finance.request.manager.PaymentMethodRequest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 支付方式表
 * @author : 
 * @email : 
 * @since : 2020-02-28 03:00:56
 * @version : v1.0.0
 */
@Mapper
public interface  PaymentMethodMapper {

    long insert(PaymentMethod method);

    long delete(Long id);

    long update( @Param("paymentMethodRequest") PaymentMethodRequest paymentMethodRequest);

    PaymentMethod queryByPrimaryKey(Long id);

    List<PaymentMethod> query(PaymentMethod paymentMethod);

    List<PaymentMethod> queryPage(@Param("startIndex") int startIndex, @Param("limit") int limit, @Param("paymentMethodRequest") PaymentMethodRequest paymentMethodRequest);

    long queryPageCount( @Param("paymentMethodRequest") PaymentMethodRequest paymentMethodRequest);
}